package cn.hs.lyxf.service.impl;

import cn.hs.lyxf.domain.WorkUseLog;
import cn.hs.lyxf.mapper.WorkUseLogMapper;
import cn.hs.lyxf.service.IWorkUseLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mzy
 * @since 2022-12-10
 */
@Service
public class WorkUseLogServiceImpl extends ServiceImpl<WorkUseLogMapper, WorkUseLog> implements IWorkUseLogService {
    @Override
    public boolean insert(WorkUseLog entity) {
        entity.setCreateTime(new Date());

        return super.insert(entity);
    }
}
